package com.example.demo.Service.Impl;

import com.example.demo.Bean.Product;
import com.example.demo.Mapper.UpProductMapper;
import com.example.demo.Service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private UpProductMapper productMapper;

    @Override
    public int insertProduct(Product product) {
        return productMapper.insertProduct(product);
    }

    @Override
    public int getIdByProduct(Product product) {
        return productMapper.getIdByProduct(product);
    }
}
